const express = require('express')
const router = express.Router()
const orderhandler = require('../router_handler/orderhandler')

// 发布订单
router.post('/release', orderhandler.releaseOrderHandlrt)

// 获取订单列表
router.get('/orderlist', orderhandler.getOrderListHandler)

// 根据不同的订单状态获取订单列表
router.get('/orderlistbystatus', orderhandler.getOrderListByStatusHandler)

// 获取订单详情
router.get('/orderdetail', orderhandler.getOrderDetailHandler)

// 支付订单 
router.post('/payorder', orderhandler.payOrderHandler)

// 评价订单
router.post('/evaluateorder', orderhandler.evaluateOrderHandler)
module.exports = router